<template>
	<view>
		<!--pages/infor/teacher.wxml-->
		<!--pages/infor/student.wxml-->
		<view class="title">
			<!-- <image src="../../static/组件%20-3.png" mode="scaleToFill"></image> -->
			<text>个人信息</text>
		</view>
		<view class="container">
			<image :src="imageUrl" mode="widthFix"></image>
		</view>
	</view>
</template>

<script>
	import cloudbase from '@cloudbase/js-sdk'
	export default {
		data() {
			return {// 机构端
				imageList: ['cloud://inspace-v1.696e-inspace-v1-1302892928/staticImage/10346.png'],
				imageUrl: ''};
		},
		created() {
			this.getImageUrl();
		},

		components: {},
		props: {},

		/**
		 * 生命周期函数--监听页面加载
		 */
		onLoad: function(options) {},

		/**
		 * 生命周期函数--监听页面初次渲染完成
		 */
		onReady: function() {},

		/**
		 * 生命周期函数--监听页面显示
		 */
		onShow: function() {},

		/**
		 * 生命周期函数--监听页面隐藏
		 */
		onHide: function() {},

		/**
		 * 生命周期函数--监听页面卸载
		 */
		onUnload: function() {},

		/**
		 * 页面相关事件处理函数--监听用户下拉动作
		 */
		onPullDownRefresh: function() {},

		/**
		 * 页面上拉触底事件的处理函数
		 */
		onReachBottom: function() {},

		/**
		 * 用户点击右上角分享
		 */
		onShareAppMessage: function() {},
		methods: {
			
			getImageUrl: function() {
				let that = this;
			
				// that.insInformation.imageUrl = [];
				cloudbase.getTempFileURL({
					fileList: that.imageList
				}).then(res => {
					// console.log(res);
					let list = res.fileList;
					// list.forEach(v => {
					// 	that.hotClassList.push(v.tempFileURL);
					// 	that.buyClassList.push(v.tempFileURL);
					// })
					that.imageUrl = list[0].tempFileURL;
					// console.log(that.hotClassList);
					// console.log(that.buyClassList);
					// console.log(that.insInformation.imageUrl)
				})
			},
		}
	};
</script>
<style>
	/* pages/infor/teacher.wxss */
	/* pages/infor/student.wxss */


	.title {
		overflow: hidden;
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: left;
	}

	.title image {
		height: 82rpx;
		width: 82rpx;
	}

	.title text {
		color: #FD973F;
		font-size: 24px;
		margin: 5%;
	}

	.container {
		padding: 17rpx 0;
	}

	.container image {
		width: 90%;
	}
</style>
